<?php
/**
 * Created by PhpStorm.
 * User: SAMSUNG-R428
 * Date: 16-1-26
 */

namespace Application\Dao;

use Infobird\Dao\MysqliBaseDao;

class WaybillDao extends MysqliBaseDao
{
	/**
	 * 提供数据表名
	 * @return string
	 */
	protected  function _provideTableName() {
		return 't_loginfo';
	}

	public function loginfo($cardNo){
	    $sql = "SELECT
                  *
                FROM
                    t_loginfo
                WHERE
                    t_loginfo.card_no = '{$cardNo}'
                ORDER BY
	            t_loginfo.id DESC";
	    return $this->queryBySql($sql);
    }
}